.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.close-btn {
  border: none;
  font-size: 18px;
  color: #999;
  padding: 0;
  height: auto;
}

.close-btn:hover {
  color: #666;
  background: transparent;
}

.params-container {
  padding: 16px 20px;
  flex-grow: 1;
}

.param-row {
  margin-bottom: 16px;
}

.param-label-container {
  margin-bottom: 6px;
}

.param-name {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.param-meta {
  margin-left: 8px;
  font-size: 12px;
  color: #888;
}

.param-unit {
  margin-right: 6px;
}

.param-input-container {
  width: 100%;
}

.input-wrapper {
  width: 100%;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cancel-btn {
  padding: 0 16px;
  height: 32px;
}

.submit-btn {
  padding: 0 16px;
  height: 32px;
}